package com.bf.xpdd.service.impl;

import com.bf.xpdd.domain.ActivityGlobal;
import com.bf.xpdd.persistent.iface.DaoActivityGlobal;
import com.bf.xpdd.service.ActivityGlobalService;

public class ActivityGlobalServiceImpl implements ActivityGlobalService
{
	/**
	 * 全局属性DAO
	 */
	private DaoActivityGlobal daoActivityGlobal;

	/**
	 * 
	 * @param daoActivityGlobal
	 */
	public void setDaoActivityGlobal(DaoActivityGlobal daoActivityGlobal)
	{
		this.daoActivityGlobal = daoActivityGlobal;
	}

	@Override
	public void addActivityGlobal(ActivityGlobal global)
	{
		this.daoActivityGlobal.addActivityGlobal(global);
	}

	@Override
	public void modifyActivityGlobal(ActivityGlobal global)
	{
		this.daoActivityGlobal.modifyActivityGlobal(global);
	}

	@Override
	public void modifyActivityStatus(long id, String nick, int status)
	{
		this.daoActivityGlobal.modifyActivityStatus(id, nick, status);
	}

	@Override
	public void delActivityGlobal(long id)
	{
		this.daoActivityGlobal.delActivityGlobal(id);
	}

	@Override
	public ActivityGlobal queryGlobalByNick(String nick)
	{
		return this.daoActivityGlobal.queryGlobalByNick(nick);
	}

}
